/*
 * Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.pig4cloud.pig.common.xss.core;

import java.lang.annotation.*;

/**
 * XSS清理忽略注解
 * <p>
 * 用于标记不需要进行XSS清理的类或方法。
 * 可用于富文本编辑器等需要保留HTML标签的场景
 * </p>
 *
 * @author L.cm
 */
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface XssCleanIgnore {

	/**
	 * 需要跳过XSS清理的字段名称列表
	 * <p>
	 * 当注解用在类或方法上时，可以指定具体哪些字段不需要进行XSS清理。
	 * 如果不指定，则整个类或方法的所有字段都不进行XSS清理
	 * </p>
	 * @return 字段名称数组
	 */
	String[] value() default {};

}
